package com.sen.controller;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sen.entity.WarehouseLog;
import com.sen.service.LogService;
import com.sen.service.WarehouseLogService;
import com.sen.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * 用户退货日志表

 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2021-01-08 17:54:40
 */
@RestController
@RequestMapping("warehouseLog")
public class WarehouseLogController {
    @Autowired
    WarehouseLogService warehouseLogService;
    @PostMapping("list")
    public R list(Integer id){
        List<WarehouseLog> warehousrLog = warehouseLogService.list(new QueryWrapper<WarehouseLog>().eq("id", id));
        return R.ok().put("warehousrLog", warehousrLog);
    }
}
